<?php

class fn extends CApplicationComponent
{
	public function init() {
	}

	//Check to see if site is local or remote
	public static function is_localhost() {
	    $whitelist = array( '127.0.0.1', '::1' );
	    if( in_array( $_SERVER['REMOTE_ADDR'], $whitelist) )
	        return true;
	}

}